import request from '@/utils/request'

// 查询例会计划列表
export function listRegularPlan(query) {
  return request({
    url: '/cld/regularPlan/list',
    method: 'get',
    params: query
  })
}

// 查询例会计划详细
export function getRegularPlan(regularPlanId) {
  return request({
    url: '/cld/regularPlan/' + regularPlanId,
    method: 'get'
  })
}

// 新增例会计划
export function addRegularPlan(data) {
  return request({
    url: '/cld/regularPlan',
    method: 'post',
    data: data
  })
}

// 修改例会计划
export function updateRegularPlan(data) {
  return request({
    url: '/cld/regularPlan',
    method: 'put',
    data: data
  })
}

// 删除例会计划
export function delRegularPlan(regularPlanId) {
  return request({
    url: '/cld/regularPlan/' + regularPlanId,
    method: 'delete'
  })
}
